#include<stdio.h>

int f(int n)
{
   return n&1;
}

int main()
{

    printf("%d\n",1==f(1));
    printf("%d\n",1==f(-3));
    printf("%d\n",0==f(0));
    printf("%d\n",0==f(-8));
}
